/*! \file DeviceContext.inl
 *	\brief 
 *
 *	created:	2010/07/13
 *	created:	13:7:2010   13:39
 *	filename: 	C:\src\tactics-engine\libs\gd_dx11\DeviceContext.inl
 *	file path:	C:\src\tactics-engine\libs\gd_dx11
 *	file base:	DeviceContext
 *	file ext:	inl
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */
namespace tt{
namespace gd_dx11{

inline
utils::COMPointer<ID3D11DeviceContext>& DeviceContext::d3dContext()
{
	return m_context;
}

inline
DeviceContext* getDx11Context( gd::DeviceContext* gdContext )
{
	ttAssert( dynamic_cast<DeviceContext*>(gdContext) );
	return static_cast<DeviceContext*>(gdContext);
}

} //namespace gd_dx11
} //namespace tt